﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>仅用于微信回调地址用index3.html，微信授权成功后自动返回该页面！</title>
</head>
<body>
    <div id="loginStatus">未登录</div>
    <div id="userInfo" style="display: none;">
        <img id="avatar" src="" width="100" height="100"><br>
        <span id="nickname"></span><br>
    </div>
    <button id="loginBtn" onclick="login()">微信登录</button>
    <button id="getInfoBtn" onclick="getUserInfo()" style="display: none;">获取用户信息</button>
    <button id="logoutBtn" onclick="logout()" style="display: none;">登出</button>
    <div id="result"></div>

    <script src="js/script.js"></script>
</body>
</html>